<!--
 * @Author: Administrator 843338961@qq.com
 * @Date: 2022-07-02 14:29:49
 * @LastEditors: Administrator 843338961@qq.com
 * @LastEditTime: 2022-07-02 14:59:56
 * @FilePath: \mall\src\components\content\carts\cartList.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="cartList">
      <cart-item v-for="item in cartItems" :item='item' :key="item.iid"></cart-item>
  </div>
</template>

<script>
import cartItem from 'components/content/carts/cartItem';

export default {
    name:'cartList',
    data(){
        return {
            cartItems:this.$store.state.cartItems
            // cartItems:[
            //     {
            //         count:1,
            //         desc:'2018秋季新款韩版百搭格子长袖衬衫+前短后长针织气质开衫外套+高腰直筒九分牛仔裤三件套装',
            //         iid:"1m70y5k",
            //         img:'//s11.mogucdn.com/mlcdn/c45406/180808_600abce0g8dc8i4f6ic7k27i7837l_640x960.jpg',
            //         price:'59.00',
            //         title:'2018秋季新款韩版百搭格子长袖衬衫+前短后长针织气质开衫外套+高腰直筒九分牛仔裤三件套装'
            //     }
            // ]
        }
    },
    components:{
        cartItem
    }
}
</script>

<style>

</style>